package com.xinya.navigationapplication.fragment

import android.os.Bundle
import android.view.View
import androidx.navigation.fragment.findNavController
import androidx.transition.TransitionInflater
import com.xinya.navigationapplication.R
import kotlinx.android.synthetic.main.fragment_layout_forget.view.*

/**
 *
 * @ClassName:      LoginFragment
 * @Description:     java类作用描述
 * @Author:         mhzhuxinya@163.com
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */
class ForgetFragment : BaseFragment() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        sharedElementEnterTransition = TransitionInflater.from(requireContext())
            .inflateTransition(R.transition.shared_image)
    }

    override fun initView(rootView: View) {
        rootView.btnToRegisterFragment.setOnClickListener {
            findNavController().navigate(R.id.action_to_fragment_register)
        }

        rootView.btnToLoginFragment.setOnClickListener {
            findNavController().navigate(R.id.action_to_fragment_login)
        }
    }

    override fun getLayoutResId(): Int {
        return R.layout.fragment_layout_forget
    }

}